import request from '@/utils/request'

// 查询楼栋自控列表
export function listBuiBuildingControl(query) {
  return request({
    url: '/park/buiBuildingControl/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋自控详细
export function getBuiBuildingControl(id) {
  return request({
    url: '/park/buiBuildingControl/' + id,
    method: 'get'
  })
}

// 新增楼栋自控
export function addBuiBuildingControl(data) {
  return request({
    url: '/park/buiBuildingControl',
    method: 'post',
    data: data
  })
}

// 修改楼栋自控
export function updateBuiBuildingControl(data) {
  return request({
    url: '/park/buiBuildingControl',
    method: 'put',
    data: data
  })
}

// 删除楼栋自控
export function delBuiBuildingControl(id) {
  return request({
    url: '/park/buiBuildingControl/' + id,
    method: 'delete'
  })
}
